home *** CD-ROM | disk | FTP | other *** search
-
- TEKlib platform builds
- =============================================================
-
- note: many programs in the examples directory will try to
- open a window, so one of the 'visual' builds is required for
- them to compile.
-
-
- Linux/32bit, gcc
- -------------------------------------------------------------
-
- 1 enter tek/
-
- 2 copy type_linux32.h over type.h
-
- 3 build
-
- - link library, no visuals, with stderr debugging:
- > make -f build/linux/Makefile_linux teklib
-
- - link library, no visuals, built from a single file,
- maximum inlining and optimization:
- > make -f build/linux/Makefile_linux teklibmonster
-
- - link library including visuals, with stderr debugging:
- > make -f build/linux/Makefile_linux teklibvisual
-
- - link library including visuals, built from a single file,
- maximum inlining and optimization:
- > make -f build/linux/Makefile_linux teklibvisualmonster
-
- 4 build examples with libtek.a. the include directory is
- the parent of tek/. link with -lpthread, and with -lX11 where
- required. for instance
-
- > cd examples
- > gcc example.c ../libtek.a -o example -I ../../ -lm
- -lpthread -lX11 -L /usr/X11R6/lib
-
- or use Makefile_linux in the examples directory.
-
- 5 if you want to install the header files and link library:
-
- > mkdir /usr/local/include/tek
- > cp tek/*.h /usr/local/include/tek
- > cp tek/libtek.a /usr/local/lib
-
-
- AmigaOS 3.x, SAS/C 6.5x
- -------------------------------------------------------------
-
- 1 enter tek/
-
- 2 copy type_amiga.h over type.h
-
- 3 build
-
- - link library, no visuals, with kprintf debugging:
- > smake -f build/amiga/Makefile_amiga_sasc teklib
-
- - link library, no visuals, built from a single file,
- no debug, maximum optimization and inlining:
- > smake -f build/amiga/Makefile_amiga_sasc teklibmonster
-
- - link library including visuals, with kprintf debugging:
- > smake -f build/amiga/Makefile_amiga_sasc teklibvisual
-
- - link library including visuals, built from a single file,
- maximum inlining and optimization, no debug:
- > smake -f build/amiga/Makefile_amiga_sasc teklibvisualmonster
-
- 4 link examples with tek.lib. include directory is the
- parent directory of tek/. or enter the examples directory
- and issue
-
- > smake -f Makefile_amiga_sasc all
-
- 5 if you want to install the header files and link library:
-
- > makedir INCLUDE:tek
- > copy tek/#?.h INCLUDE:tek
- > copy tek/tek.lib LIB:
-
-
- TAO Elate/AmigaSDK 1.01, vpcc
- -------------------------------------------------------------
-
- 1 make sure the source tree is located in /lib/tek, so
- that the library is built at its designated place in
- the filesystem. there is no installation required.
-
- 2 enter /lib/tek
-
- 3 copy type_elate.h over type.h
-
- 4 build
-
- - tool library, no visuals:
- > make -f build/elate/Makefile_elate teklib
-
- - tool library, including visuals:
- > make -f build/elate/Makefile_elate teklibvisual
-
- 5 build examples with -I /lib/, for instance
-
- > cd examples
- > vpcc example.c -o example -I /lib/
-
- or use Makefile_elate in the examples directory.
-
- 6 if you want to install the header files:
-
- > mkdir /lang/cc/include/tek
- > cp tek/*.h /lang/cc/include/tek
-
-
- MorphOS, gcc
- -------------------------------------------------------------
-
- 1 enter tek/
-
- 2 copy type_amiga.h over type.h
-
- 3 build
-
- - link library, no visuals, with stderr debugging:
- > make -f build/amiga/Makefile_morph_gcc teklib
-
- - link library, no visuals, built from a single file,
- maximum inlining and optimization:
- > make -f build/amiga/Makefile_morph_gcc teklibmonster
-
- - link library including visuals, with stderr debugging:
- > make -f build/amiga/Makefile_morph_gcc teklibvisual
-
- - link library including visuals, built from a single file,
- maximum inlining and optimization:
- > make -f build/amiga/Makefile_morph_gcc teklibvisualmonster
-
- 4 build examples with libtek.a. the include directory is
- the parent of tek/. see Makefile_morphos in the examples
- directory for further details.
-
-
- AmigaOS 3.x, egcs as cross compiler
- -------------------------------------------------------------
-
- 1 enter tek/
-
- 2 copy type_amiga.h over type.h
-
- 3 build
-
- - link library:
- > make -f build/amiga/Makefile_amiga_gcc teklib
-
- - link library, built from a single file:
- > make -f build/linux/Makefile_amiga_gcc teklibmonster
-
- - link library including visuals:
- > make -f build/linux/Makefile_amiga_gcc teklibvisual
-
- - link library including visuals, built from a single file:
- > make -f build/linux/Makefile_amiga_gcc teklibvisualmonster
-
- 4 build examples with libtek.a. the include directory is
- the parent of tek/. see Makefile_amiga_gcc in the examples
- directory for further details.
-
-
-
- adjusting debug levels
- -------------------------------------------------------------
-
- debug levels can be adjusted in the respective platforms'
- makefiles. see build/<platform>/
-
- debug level
-
- - 0 indicates no debug info,
- - 1 indicates "maximum",
- - 5 indicates "warning",
- - 10 indicates "error",
- - 20 indicates "failure".
-
- debug levels can be adjusted for individual domains
- of the library:
-
- - KNEXECDEBUG: debug level for the kernel/exec domain,
- - KNSOCKDEBUG: debug level for the kernel/socket domain,
- - KNVISDEBUG: debug level for the kernel/visual domain,
- - TDEBUG: debug level for the tekspace domain.
-